package com.peng.utils;

import com.peng.dao.pojo.SysUser;

public class UserThreadLocal {
    public UserThreadLocal(){}
    private static ThreadLocal<SysUser> threadLocal=new ThreadLocal<>();
    public static void set(SysUser sysUser){
        threadLocal.set(sysUser);
    }

    public static SysUser get(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }

}
